#include <QtGui>
#include "imgProcPage.h"

imgProcPage::imgProcPage(QWidget *parent)
	: QWidget(parent)
{
	m_pLabel = new QLabel();
	m_pDockWidget = new QDockWidget();

	m_pButton1 = new QPushButton("button1");
	m_pButton2 = new QPushButton("button2");
	m_pButton3 = new QPushButton("button3");
	m_pButton4 = new QPushButton("button4");
	m_pButton5 = new QPushButton("button5");
	m_pButton6 = new QPushButton("button6");
}

void imgProcPage::SetLayout(){
	QHBoxLayout *mainLayout = new QHBoxLayout();
	setLayout(mainLayout);
	mainLayout->addWidget(m_pLabel);
	mainLayout->addWidget(m_pDockWidget);

	QGridLayout *pGridLayout = new QGridLayout();
	pGridLayout->addWidget(m_pButton1,1,1);
	pGridLayout->addWidget(m_pButton2,1,2);
	pGridLayout->addWidget(m_pButton3,1,3);
	pGridLayout->addWidget(m_pButton4,1,4);
	pGridLayout->addWidget(m_pButton5,2,1);
	pGridLayout->addWidget(m_pButton6,2,2);

	QWidget *pRightWidget = new QWidget();
	pRightWidget->setLayout(pGridLayout);
	m_pDockWidget->setWidget(pRightWidget);
}

void imgProcPage::LoadIcons(){
	QIcon icon;
	icon.addFile("");
	m_pButton1->setIcon(QIcon());
}

imgProcPage::~imgProcPage()
{

}
